solve a rational equation with two solutions